<?php 
namespace App\Http\Controllers\Back;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\DB;

class BackController extends Controller{



	//分页展示
	public function index(){

			return view('back.index');
       
    }

    // 用户列表
	public function userlist(){

			$data=DB::table('backUserList')->get();

			return view('back.userlist',['data'=>$data]);
       
    }


    // 添加用户
	public function adduser(){
	
  //     $a=$_POST;

		// if($a){
		// 	// $data = $request->('tel');
		// 	// var_dump($data);die;
		// 	echo 1;
		// }else{
			return view('back.adduser');
		// }
    
    }

    public function rights(){

			return view('back.rights');
    }

    public function addadmin(){

			return view('back.addadmin');
       
    }




}

 ?>